<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Services\Api\GoodsService;
use App\Http\Resources\GoodsCollection;

class GoodsController extends Controller
{
    public function index(Request $request, GoodsService $service)
    {
    	$datas = $service->getGoodsList($request->all());
    	return new GoodsCollection($datas);
    }
}
